<template>
  <div>
    <el-form>
      <el-form-item>
        <el-button type="warning" icon="el-icon-star-off" circle></el-button>
        <el-link type="info">信息链接</el-link>
        <el-radio v-model="radio" label="1">备选项{{radio}}</el-radio>
        <el-space wrap>
          <el-card class="box-card" style="width: 250px" v-for="i in 1" :key="i">
            <template v-slot:header>
              <div class="card-header">
                <span>Card name</span>
                <el-button class="button" type="text">Operation button</el-button>
              </div>
            </template>
            <div v-for="o in 4" :key="o" class="text item">{{ 'List item ' + o }}</div>
          </el-card>
        </el-space>
      </el-form-item>
    </el-form>
    <el-tooltip :content="'Switch value: ' + value" placement="top">
      <el-switch
        v-model="value"
        active-color="#13ce66"
        inactive-color="#ff4949"
        active-value="100"
        inactive-value="0">
      </el-switch>
    </el-tooltip>
    <loading></loading>
    <el-calendar v-model="calendar">
    </el-calendar>
  </div>
</template>

<script lang="ts">
import { defineComponent, reactive, toRefs } from "vue";
import loading from './loading.vue'
export default defineComponent({
  setup() {
    const obj = reactive({
      radio: '1',
      value: 10,
      calendar: new Date()
    })
    return {
      ...toRefs(obj)
    }
  },
  components: {
    loading
  }
});
</script>

<style>
</style>